package com.equipment_management_p2.controller;

import com.equipment_management_p2.service.ex.ServiceException;
import com.pojo.util.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;


public class BaseController {
    @ExceptionHandler(ServiceException.class)
    public Result<?> handleException(Throwable e){
        Result<?>result=Result.failure();
        return result;
    }
}
